package post;

public class SalesLineItem {
    private int quantity;
    private Item item;
    
    SalesLineItem(int q, Item myItem) {
        this.quantity = q;
        this.item = myItem;
    }
    
    public double getPrice() {
        return this.quantity * this.item.getPrice();
    }
}
